export const isAuthenticated = () => {
    const username = localStorage.getItem('username');
    return!!username; // 如果有用户名，则认为已认证
};